home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1993 / MacHack 1993.toast / MacHack™ 1987-1992 / MacHack™ '90 / Other Stuff / Demos ƒ / TOPS SoftTalk Package / STServer ƒ / STServer.h < prev   
Encoding:
C/C++ Source or Header  |  1989-09-06  |  2.8 KB  |  97 lines  |  [TEXT/MPS ]

  1. /*
  2. ------------------------------------------------------------------------------
  3. |    Sun Microsystems, TOPS Division
  4. |    950 Marina Village Parkway
  5. |    P.O. Box 4016
  6. |    Alameda, CA 94501
  7. |    
  8. |    Copyright (c) 1989 Sun Microsystems, Inc. All rights reserved.
  9. |    
  10. |    Sun considers its source code as an unpublished, proprietary trade secret,
  11. |    and it is available only under strict license provisions. This copyright
  12. |    notice is placed here only to protect Sun in the event the source is deemed
  13. |    a published work. Disassembly, decompilation, or other means of reducing the
  14. |    object code to human readable form is prohibited by the license agreement
  15. |    under which this code is provided to the user or company in possession of
  16. |    this copy.
  17. |    
  18. |    RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the Government
  19. |    is subject to restrictions as set forth in subparagraph (c) (1) (ii) of the
  20. |    Rights in Technical Data and Computer Software clause at DFARS 52.227-7013
  21. |    and in similar clauses in the FAR and NASA FAR supplement.
  22. ------------------------------------------------------------------------------
  23. */
  24.  
  25.  
  26.  
  27. /*
  28. ================================================================================
  29. **
  30. **    Project:    SoftTalk
  31. **
  32. **    File:        STServer.h
  33. **
  34. **    Purpose:
  35. **        Provide the interface to the sample SoftTalk server.  Call the routines
  36. **        STServerCreate(), STServerDispose(), and STServerTrigger() from the outside.
  37. **        Func1() thru Func5() are the routines that the server exports and can be called
  38. **        from clients.
  39. **
  40. **    ----------------------------------------------------------------------------
  41. **
  42. **    Version        Date        Author        Description
  43. **    -------        ----        ------        -----------
  44. **    1.0.2        30-Aug-89     MAC            Second draft. Added Func6, SampleStruct.
  45. **    1.0.1        17-Aug-89     MAC            First draft.
  46. **
  47. ================================================================================
  48. */
  49.  
  50. #ifndef __STServer__
  51. #define __STServer__
  52.  
  53.  
  54. /*
  55. **    ----------------------------------------------------------------------------
  56. **        INCLUDES
  57. **    ----------------------------------------------------------------------------
  58. */
  59. #include "StdHdr.h"
  60. #include <MacTypes.h>
  61.  
  62.     
  63. /*
  64. **    ----------------------------------------------------------------------------
  65. **        TYPES
  66. **    ----------------------------------------------------------------------------
  67. */
  68. typedef struct {
  69.     INT32 foo;
  70.     INT16 fi;
  71.     INT32 fo;
  72.     INT32 fum;
  73.     INT16 hello;
  74.     INT16 again;
  75. } SampleStruct;
  76.  
  77.  
  78.  
  79. /*
  80. **    ----------------------------------------------------------------------------
  81. **        PROTOTYPES
  82. **    ----------------------------------------------------------------------------
  83. */
  84. void STServerCreate(void);
  85. void STServerDispose(void);
  86. void STServerTrigger(void);
  87.  
  88. INT32 Func1(void);
  89. INT32 Func2(INT32 arg1);
  90. INT32 Func3(INT32 arg1, INT16 arg2);
  91. INT32 Func4(char* cStr);
  92. INT32 Func5(Str255 pStr);
  93. INT32 Func6(SampleStruct* pStruct);
  94.  
  95.  
  96.  
  97. #endif